import Cookies from 'js-cookie'

export function useSignInCheck() {
  const appStore = useAppStore()
  const token = Cookies.get('token')
  if (!token && appStore.isLogined) {
    appStore.clearLoginInfo()
  }
}
